#ifndef ENTRY_H
#define ENTRY_H

#include <string>
#include <vector>

namespace Tvimeg
{
	class File;

	class Entry
	{
	private:
		typedef std::vector<File> FilesList;

	public:
		Entry(const File& file);
		virtual ~Entry(void);

		void				AddFile(const File& file, const std::size_t commonNameLengthIn);

		typedef FilesList::const_iterator FilesIterator;

		FilesIterator		GetFilesBegin(void) const			{ return files.begin(); }
		FilesIterator		GetFilesEnd(void) const				{ return files.end(); }

		const std::string	GetName(void) const;

	private:
		FilesList			files;
		std::size_t			commonNameLength;
	};
}

#endif // ENTRY_H
